Skip to content

DM-50420: Inject variable sources into the template and science images#461

Open
BrunoSanchez wants to merge 2 commits into
mainfrom
tickets/DM-50420
Open

DM-50420: Inject variable sources into the template and science images#461
BrunoSanchez wants to merge 2 commits into
mainfrom
tickets/DM-50420

Conversation

@BrunoSanchez

Copy link
Copy Markdown
Member

Add visit information to templates useful for template fake injection

@BrunoSanchez BrunoSanchez changed the title DM-50420 DM-50420: Inject variable sources into the template and science images Jun 1, 2026

@isullivan isullivan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put my suggested changes together on a new commit. Please look it over and change as needed!

Comment thread python/lsst/ip/diffim/getTemplate.py Outdated
self.checkHighVariance(template)
template.setPsf(self._makePsf(template, catalog, wcs))
visitId = outputRefs.template.dataId['visit'] if outputRefs is not None else 1000
template.setInfo(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use template.getInfo().setVisitInfo(VisitInfo(id=visitId)) instead, so that the rest of the exposureInfo is preserved.

Comment thread python/lsst/ip/diffim/getTemplate.py Outdated

@timeMethod
def run(self, *, coaddExposureHandles, bbox, wcs, dataIds, physical_filter):
def run(self, *, coaddExposureHandles, bbox, wcs, dataIds, physical_filter, outputRefs=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the run method needing to know anything about the outputRefs, that should be handled in runQuantum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants